const Koa = require('koa')
const router = require('koa-route')
const app = new Koa()


const main = ctx => {
    ctx.response.body = `${ctx.request.url} - ${ctx.request.method} - ${Date.now()}`
}

app.use(router.get('/',main))
app.listen(3000,() => {
    console.log('项目已启动');
})